﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Globalization;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Resources;
using DtsExplorerProject.Helpers;
using System.Net;
using System.IO;

namespace DtsExplorerProject.Helpers
{
    public partial class About : Form
    {
        public About()
        {
            InitializeComponent();
            InitializeForm();
        }

        private void InitializeForm()
        {
            Bitmap image = (Bitmap)DtsExplorerProject.Resources.DtsResources.ResourceManager.GetObject("flag");
            this.pictureBox1.Image = image;
        }

       
       

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            string x = CultureInfo.CurrentCulture.TwoLetterISOLanguageName;
            switch (x)
            {
                case "fr":
                    System.Diagnostics.Process.Start("http://fr.wikipedia.org/wiki/Tunisia");
                    break;
                case "en":
                    System.Diagnostics.Process.Start("http://en.wikipedia.org/wiki/Tunisia");
                    break;
                case "de":
                    System.Diagnostics.Process.Start("http://de.wikipedia.org/wiki/Tunisia");
                    break;
                case "es":
                    System.Diagnostics.Process.Start("http://es.wikipedia.org/wiki/Tunisia");
                    break;
                default:
                    System.Diagnostics.Process.Start("http://en.wikipedia.org/wiki/Tunisia");
                    break;
            }
            
        }

        private void About_Load(object sender, EventArgs e)
        {

        }


    }
}
